package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.WorkflowTowShipOilModel;

import java.util.ArrayList;
import java.util.List;

public class WorkflowTowShipOilListener extends AnalysisEventListener<WorkflowTowShipOilModel> {

    private List<WorkflowTowShipOilModel> results = new ArrayList<>();

    @Override
    public void invoke(WorkflowTowShipOilModel workflowTowShipOilModel, AnalysisContext analysisContext) {
        results.add(workflowTowShipOilModel);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<WorkflowTowShipOilModel> getResults() {
        return results;
    }
}
